package com.midou.administration.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.midou.administration.bo.DishTypeBo;
import com.midou.administration.entity.DishType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */
public interface DishTypeMapper extends BaseMapper<DishType> {

  public List<DishType> findAll(@Param("Page")Page page);

  public int addDishType(DishType dishType);

  public int delDishType(@Param("id")int id);

  public int updDishTypeName(DishType dishType);

  public List<DishTypeBo> qureyall();

  /*查询属于该商家的商品分类*/
  List<DishType> queryBybusiness(@Param("business") Integer business_id);

  int judgmentDishTypeName(@Param("dishTypeName") String DishTypeName);

}
